#ifndef POSTMESSAGEREQUEST_H
#define POSTMESSAGEREQUEST_H

#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkCookie>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>

#include "executionobjectinterface.h"

class PostMessageRequest : public ExecutionObjectInterface
{
    Q_OBJECT
public:
    explicit PostMessageRequest(QObject *parent = 0);
    explicit PostMessageRequest(QString toNumber, QString message, QString cookieData, QString timestamp, QObject *parent = 0);
    ~PostMessageRequest();

signals:
    
public slots:
    void doInBackground();
    void onPostExecute();
    void onNetworkReply(QNetworkReply *reply);

private:
    QString urlPath_;

    QString toNumber_;
    QString message_;
    QString timestamp_;
    QString cookieData_;

    QNetworkAccessManager *manager_;
    
};

#endif // POSTMESSAGEREQUEST_H
